package dao;

import exceptions.DatabaseException;
import java.util.List;

/**
 *
 * @author Alejandro
 */
public interface BaseDAO {
    public int insert(Object obj) throws DatabaseException;
    public int deleteById(int id) throws DatabaseException;
    public int updateById(Object obj) throws DatabaseException;
    public List<Object> selectAll() throws DatabaseException;
    public Object selectById(int id) throws DatabaseException;
    public List<Object> findByNameOrSurname(String query) throws DatabaseException;
}
